package com.acme.task4;

public class Task4Arrays {
	public static void main(String[] args) {

		int array[] = {9,7,9,7,7,9,7,7,7,7};
		int a = 0, b = 0, c = 0;
		for (int i : array) {
			if (i == 3) {
				a++;
			} else if (i == 7) {
				b++;
			} else if (i == 9) {
				c++;
			}
		}
		
		System.out.println("Number of 3: " + a);
		System.out.println("Number of 7: " + b);
		System.out.println("Number of 9: " + c);
	}
}